﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;

namespace KYKJ.Monitor
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        #region 字段

        #endregion

        #region 属性

        #endregion

        #region 构造函数

        public MainWindow()
        {
            InitializeComponent();
        }

        #endregion

        #region  窗口事件

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
           
        }

        private void Window_Closed(object sender, EventArgs e)
        {
            VideoMonitorControl1.Close();
        }

        #endregion

        #region 私有方法 

        #endregion

        private void btnVideo_Click(object sender, RoutedEventArgs e)
        {
            this.VideoMonitorControl1.Visibility = Visibility.Visible;
            this.PlayBackControl1.Visibility = Visibility.Hidden;
            this.SettingControl1.Visibility = Visibility.Hidden;
        }

        private void btnPlayBack_Click(object sender, RoutedEventArgs e)
        {
            this.VideoMonitorControl1.Visibility = Visibility.Hidden;
            this.PlayBackControl1.Visibility = Visibility.Visible;
            this.SettingControl1.Visibility = Visibility.Hidden;
        }

        private void btnSet_Click(object sender, RoutedEventArgs e)
        {
            this.VideoMonitorControl1.Visibility = Visibility.Hidden;
            this.PlayBackControl1.Visibility = Visibility.Hidden;
            this.SettingControl1.Visibility = Visibility.Visible;
        }
    }
}
